import request from "../uilts/request";

// 获取回访
export function getRecall(params) {
  return  request({
    url:"api/recall/search",
    method:"get",
    params
  })
}
// 删除回访
export function delRecall(id) {
  return  request({
    url:"api/recall/delete/"+id,
    method:"delete"
  })
}
// 新增回访
export function addRecall(data) {
  return  request({
    url:"api/recall/add",
    method:"POST",
    data
  })
}
//编辑回访
export function modifyRecall(data) {
  return  request({
    url:"api/recall/modify",
    method:"put",
    data
  })
}

//回访详情
export function getRecallDetail(id) {
  return  request({
    url:"api/recall/view/"+id,
    method:"get"
  })
}


